// 全局组件
import BaseCard from "@/old-base-ui/base-card"
import UiPagination from "@/new-ui/ui-pagination"

// 旧版本的表单表格 以及业务表单 表格封装
import BaseForm from "@/old-base-ui/base-form"
import BaseTable from "@/old-base-ui/base-table"
import BaseSearchForm from "@/components/base-search-form"
import BaseModalForm from "@/components/base-modal-form"
import BasePageTable from "@/components/base-page-table"

// 新版本的表单表格 以及业务表单 表格封装
import UiForm from "@/new-ui/ui-form"
import UiTable from "@/new-ui/ui-table"
import UiQueryForm from "@/components/ui-query-form"
import UiModalForm from "@/components/ui-modal-form"
import UiPageTable from "@/components/ui-page-table"

export default function registerComponents(app) {
    app.component('BaseCard', BaseCard)
    app.component('UiPagination', UiPagination)

    // 旧版本
    app.component('BaseForm', BaseForm)
    app.component('BaseTable', BaseTable)
    app.component('BaseSearchForm', BaseSearchForm)
    app.component('BaseModalForm', BaseModalForm)
    app.component('BasePageTable', BasePageTable)

    // 新版本
    app.component('UiForm', UiForm)
    app.component('UiTable', UiTable)
    app.component('UiQueryForm', UiQueryForm)
    app.component('UiModalForm', UiModalForm)
    app.component('UiPageTable', UiPageTable)
}